package com.example.demo2.service;

import com.example.demo2.pojo.PageBean;
import com.example.demo2.pojo.data.AdminDO;
import com.example.demo2.utils.Result;
import com.example.demo2.pojo.vo.AdminVO;

/** 
 * <br/>
 * Created by weidong on 2020/02/02
 */
public interface AdminService {

	Result add(AdminVO adminVO) throws Exception;

	Result updateById(AdminVO adminVO) throws Exception;
	
	Result findById(Integer id) throws Exception;
	
	Result list(AdminVO adminVO) throws Exception;

    PageBean listPage(AdminVO adminVO) throws Exception;
	
	Result count(AdminVO adminVO) throws Exception;
	
	Result deleteById(Integer id) throws Exception;

    AdminDO login(String username, String password);
    AdminDO findByName(String username);
}